package com.itheima.springboot_25_admin_server;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//@EnableCaching //表明本项目使用缓存技术
//@EnableCreateCacheAnnotation //表明启用注解缓存 这是jetcache使用缓存的开关
@EnableMethodCache(basePackages = "com.itheima") //括号里是包名,也就是应用范围,它依赖 @EnableCreateCacheAnnotation
//@EnableScheduling //表明开启定时任务功能
@EnableAdminServer //这是一个adminserver
public class Springboot25AdminServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(Springboot25AdminServerApplication.class, args);
    }

}
